<?php 
  var_dump($_SERVER);
?>

<form method="post" action="<?php echo $_SERVER['']?>index.php">
用户名：<input type="text" name="username"><br/>
密码：<input type="text" name="password"><br/>

<input type="submit"><br/>

</form>

